public class Teacher1  extends Staff {
    private int teachingAge; // 教龄

    public Teacher1(String id, String name, String gender, double salary, int i) {
        super(id, name, gender, salary);
        this.teachingAge = teachingAge;


    }
    public void work() {
        System.out.println("从事教学工作，教龄" + teachingAge + "年");
    }
}